package com.bootdo.china.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import com.bootdo.common.annotation.NotColumn;
import com.bootdo.common.fansheutils.FansheUtils;
import com.bootdo.common.fansheutils.JibenLei;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.haojiangbo.annotation.HapiFeild;


/**
 * 
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-09-03 18:25:37
 */
 @JsonInclude(JsonInclude.Include.NON_NULL)
public class ChinaData extends JibenLei {
	@NotColumn
	private static final long serialVersionUID = 1L;
	
	
	//
		@HapiFeild("")
	private Long id;
	
	//
		@HapiFeild("")
	private String name;
	
	//
		@HapiFeild("")
	private String code;
	
	//
		@HapiFeild("")
	private Long parentId;
	
	//
		@HapiFeild("")
	private Date createTime;

	@NotColumn
	private List<ChinaData> cList = new ArrayList<>();

    public ChinaData(){
    
    	this.createTime = new Date();
    }

	public List<ChinaData> getcList() {
		return cList;
	}

	public void setcList(List<ChinaData> cList) {
		this.cList = cList;
	}

	/**
	 * 设置：
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * 获取：
	 */
	public String getCode() {
		return code;
	}
	/**
	 * 设置：
	 */
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	/**
	 * 获取：
	 */
	public Long getParentId() {
		return parentId;
	}
	/**
	 * 设置：
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：
	 */
	public Date getCreateTime() {
		return createTime;
	}


	@Override
	@JsonIgnore
	public List<HashMap<String, Object>> getFields() {
		// TODO Auto-generated method stub
		return FansheUtils.getFieldList(this);
	}


}
